<% if @transaction.id.nil? %>
  $("#new_transaction").append("<%=j render 'transactions/form', { transaction: @transaction } %>");
<% end %>